package jnpf.engine.custom.cmd.commons;

import org.flowable.common.engine.impl.interceptor.Command;
import org.flowable.common.engine.impl.interceptor.CommandContext;
import org.flowable.engine.impl.util.CommandContextUtil;
import org.flowable.task.service.impl.persistence.entity.TaskEntityManager;

public class GetTaskEntityManagerCmd implements Command<TaskEntityManager> {
    @Override
    public TaskEntityManager execute(CommandContext commandContext) {
        return   CommandContextUtil.getProcessEngineConfiguration(commandContext).getTaskServiceConfiguration().getTaskEntityManager();

    }
}
